{extend name="mainadmin@layouts/base" /}
{block name="main" }
<header class="header  b-b clearfix">
    <div class="page-breadcrumbs">
        <ul class="breadcrumb">
            <li>
                <i class="fa fa-ellipsis-v"></i>
                <strong>直播配置</strong>
            </li>
        </ul>
    </div>
</header>
<form class="form-horizontal form-validate form_vbox" method="post" action="{:url('save')}">
    <div class="modal-body">
        <div class="form-group">
            <label class="col-sm-2 control-label">选择开播时间：</label>
            <div class="controls col-sm-4 ">
                <div class="input-group"><input type="text" class="input-max" name="live_time"
                                                value="{$setting.live_time}"
                                                data-after="#groundingdate" data-offsetday="0"
                                                readonly="readonly"  data-toggle="datetimepicker"/><span
                        class="input-group-addon"><i class="fa fa-calendar"></i></span></div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">首页入口图：</label>
            <div class="controls col-sm-6">
                <div class="defUpImgBox" data-toggle="uploaderOne">
                    <img id="img_logo" src="{$setting.entrance_img|default='__STATIC__/main/img/image.png'}">
                    <input id="input_logo" type="hidden"  name="entrance_img" data-rule-required="true"  value="{$setting.entrance_img}">
                    <div class="tips">点击上传</div>
                </div>
                <p>
                    <span class="help-inline">图片尺寸：320*320像素</span>
                </p>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">链接：</label>
            <div class="controls col-sm-6">
                <input type="text"  class="input-max" name="live_url" data-rule-required="true"
                       value="{$setting.live_url}"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"></label>
            <div class="controls">
                <label class="radio-inline">
                    <input name="status" value="1" {$setting['status']==1?'checked':''} class="js_undertake " type="radio" >
                    开启
                </label>
                <label class="radio-inline">
                    <input name="status" value="0" {$setting['status']==0?'checked':''} class="js_undertake " type="radio" >
                    关闭
                </label>
            </div>
        </div>

        <div class="form-group" style="margin-top: 50px">
            <label class="col-sm-2 control-label"></label>
            <div class="controls">
                <button type="submit" class="btn btn-primary js_save_submit" data-loading-text="保存中...">完成</button>
            </div>
        </div>
    </div>
</form>
{/block}
{block name="footer"}
<script type="text/javascript">
    seajs.use("dist/plupload/file.js")
</script>
{/block}